package com.tuni.birthdaymoney.web.model;

import javax.validation.Valid;

import com.tuni.birthdaymoney.persistence.entity.Operation;
import com.tuni.birthdaymoney.persistence.entity.Person;

public class DonationsPage {
    // for new donations form
    @Valid
    private Operation operation;
    private Iterable<Person> allPeople;
    private Iterable<Donator> donators;
    private double totalAmount;

    public Operation getOperation() {
        return operation;
    }

    public void setOperation(Operation operation) {
        this.operation = operation;
    }

    public Iterable<Person> getAllPeople() {
        return allPeople;
    }

    public void setAllPeople(Iterable<Person> allPeople) {
        this.allPeople = allPeople;
    }

    public Iterable<Donator> getDonators() {
        return donators;
    }

    public void setDonators(Iterable<Donator> donators) {
        this.donators = donators;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }
}
